package com.ddch.liaomingtinkerhotfix.base;

import android.content.Context;

import com.ddch.tinkerlib.FixDexUtils;

import androidx.multidex.MultiDex;
import androidx.multidex.MultiDexApplication;

/**
 * created by 韦敏敏
 * on 2019/12/9
 */
public class BaseApplication extends MultiDexApplication {
    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
        // 加载热修复Dex文件
        FixDexUtils.loadFixDex(base);
    }
}
